package com.huawei.gamebox.plugin.gameservice.newsinfo.bean;

import com.huawei.gamebox.service.common.cardkit.bean.BaseGsCardBean;
import java.util.HashSet;
import java.util.List;
import java.util.ListIterator;
import java.util.Set;

public class NewsInfoWithTitleBean extends BaseGsCardBean {
    private List<NewsInfoBean> list_;
    private Set<String> nodeKey = new HashSet();

    public List<NewsInfoBean> ॱ() {
        return this.list_;
    }

    public boolean ˋ(int i) {
        if (ॱ() == null || ॱ().size() == 0) {
            return true;
        }
        ListIterator listIterator = ॱ().listIterator(0);
        while (listIterator.hasNext()) {
            if (ˏ(((NewsInfoBean) listIterator.next()).ˋ())) {
                listIterator.remove();
            }
        }
        return false;
    }

    private boolean ˏ(String str) {
        if (str == null) {
            return false;
        }
        boolean contains = this.nodeKey.contains(str);
        if (contains) {
            return contains;
        }
        this.nodeKey.add(str);
        return contains;
    }
}
